package org.example.wax.manager;

import java.util.List;

public class CabinetLayout {

    private List<ReaderItem> reader;
    private List<LockItem> lock;

    public List<ReaderItem> getReader() {
        return reader;
    }

    public void setReader(List<ReaderItem> reader) {
        this.reader = reader;
    }

    public List<LockItem> getLock() {
        return lock;
    }

    public void setLock(List<LockItem> lock) {
        this.lock = lock;
    }

    public static class ReaderItem {
        private String ip;
        private List<Integer> antIndexes;
        private List<Integer> boxIndexes;

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public List<Integer> getAntIndexes() {
            return antIndexes;
        }

        public void setAntIndexes(List<Integer> antIndexes) {
            this.antIndexes = antIndexes;
        }

        public List<Integer> getBoxIndexes() {
            return boxIndexes;
        }

        public void setBoxIndexes(List<Integer> boxIndexes) {
            this.boxIndexes = boxIndexes;
        }
    }

    public static class LockItem {
        private String ip;
        private Integer cabinetId;
        private List<Integer> boxIndexes;
        private List<Integer> portIndexes;

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public Integer getCabinetId() {
            return cabinetId;
        }

        public void setCabinetId(Integer cabinetId) {
            this.cabinetId = cabinetId;
        }

        public List<Integer> getBoxIndexes() {
            return boxIndexes;
        }

        public void setBoxIndexes(List<Integer> boxIndexes) {
            this.boxIndexes = boxIndexes;
        }

        public List<Integer> getPortIndexes() {
            return portIndexes;
        }

        public void setPortIndexes(List<Integer> portIndexes) {
            this.portIndexes = portIndexes;
        }
    }
}
